package com.iyundao.io.tools;

import java.util.Map;

/**
 * Created by black on 2019/3/22.
 */
public class ResponseData {

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    private String token;
    private int code;
    private String resMessage;
    private Object output;


    public ResponseData(int code, String resMessage, Object output, String token){
        this.setCode(code);
        this.setResMessage(resMessage);
        this.setOutput(output);
        this.setToken(token);
    }

    public ResponseData(int code, String resMessage, Object output){
        this.setCode(code);
        this.setResMessage(resMessage);
        this.setOutput(output);
    }

    public ResponseData(int code, String resMessage, String token){
        this.setCode(code);
        this.setResMessage(resMessage);
        this.setToken(token);
    }

    public ResponseData(int code, String resMessage){
        this.setCode(code);
        this.setResMessage(resMessage);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getResMessage() {
        return resMessage;
    }

    public void setResMessage(String resMessage) {
        this.resMessage = resMessage;
    }

    public Object getOutput() {
        return output;
    }

    public void setOutput(Object output) {
        this.output = output;
    }
}
